<template>
     <div class="form-container">
      <el-table :data="list" v-loading="loading">

      <el-table-column label="所属机构" align="center" prop="mcn_name" />
      <el-table-column label="所属达人" align="center" prop="pro_name" />
      <el-table-column label="跟进人" align="center" prop="emp_name" />
      <el-table-column label="跟进内容" align="center" prop="remark" />
      <el-table-column label="跟进阶段" align="center" prop="step" />
      <!-- <el-table-column label="服务标签" align="center" prop="tags" /> -->
      <el-table-column label="跟进时间" align="center" prop="create_time" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.create_time, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
        </template>
      </el-table-column>

      <el-table-column label="下次跟进时间" align="center" prop="next_time" >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.next_time, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
        </template>
      </el-table-column>

    </el-table>
    
    <pagination v-show="total > 0" :total="total" :page.sync="pageNum" :limit.sync="pageSize"
      @pagination="getList" />

        </div>
</template>

<script>
export default {
	data() {
		return {
      pageNum: 1,
      pageSize: 10,
		}
	},
	name: 'teamList',
    props: {
    /* 编辑器的内容 */
    list: {
      type: Array,
      default: [],
    },
    loading: {
      type: Boolean,
      default: true,
    },
    total: {
      type: Number,
      default: 0,
    },

  },
	methods: {
		// 在子组件中触发父组件方法
    getList() {
    this.$emit('pageChange')
  },
	},

	computed: {
	
	}
}
</script>
